<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <!-- 复习json -->
    <script>
        const jsonStr = `{"name": "小花"}`
        // console.log(jsonStr)
        // 把对象转成json字符串
        // console.log(  JSON.stringify({name: '小花'})  )
        // 把json字符串转换成对象
        console.log( JSON.parse(jsonStr) )
    </script>
</body>
</html>